﻿using DongFangGuoKai.WMSPlatform.Domain.Models;
using DongFangGuoKai.WMSPlatform.Service.ReceBill.Dto;
using SqlSugar;
using System.Linq.Expressions;

namespace DongFangGuoKai.WMSPlatform.Service.ReceBill
{
    public partial class ReceBillService
    {
        public async Task<string> GetRecieivingBillDetailPositionsAsync(string billNo)
        {
            string positions = "";
            var list = await ReceivingBillDetailRepo
                .GetAsync(t => t.BillNo == billNo);
            if (list != null)
            {
                switch (list.PositionType)
                {
                    case 1:
                        positions = "货架区";

                        break;

                    case 2:
                        positions = "自助柜";
                        break;
                    case 3:
                        positions = "托盘区";
                        break;

                    default:
                        break;
                }
            }
            return positions;

        }

    }

}
